package com.过滤器链的设计与实现;

public class ConcreteFilter2 implements Filter {
    @Override
    public boolean needToLoad() {
        return true;
    }

    @Override
    public Response filter(Request request, Invoker nextInvoker) {
        System.out.println("filter2 - before " + request);
        Response response = nextInvoker.invoke(request);
        System.out.println("filter2 - after " + request);
        return response;
    }

}